package com.hf.lookatme.zview.activitys;

import android.os.Bundle;

import com.hf.lookatme.R;
import com.hf.lookatme.customview.HeaderView;
import com.orhanobut.logger.Logger;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by maizi on 15/6/30.
 */
public class Activity_Main_Study extends Activity_Base {

  @InjectView(R.id.head_view)
  HeaderView headerView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main_study_lay);
    ButterKnife.inject(this);
    try{

      initActionBar();
    }catch (Exception ex){
      Logger.e(ex.toString());
    }
  }

  private void initActionBar(){

    headerView.setTitle(R.string.study);
    headerView.setOnBackClickListener(new HeaderView.onClickListener() {
      @Override
      public void onClick() {
        Activity_Main_Study.this.finish();
      }
    });
  }
}
